class Style {
  constructor (style) {
    this.style = style || ''
  }

  add (style) {
    this.style += style
    if (typeof style !== 'string') throw new TypeError('style need to be string')
    if (style.slice(-1) !== ';') { this.style += ';' }
  }

  result () {
    return this.style
  }
}
export default Style
